<cpanel setvar="headerimg=../images/mailmenu.gif">
<cpanel setvar="dprefix=../">
<cpanel Branding="include(stdheader.html)">
<cpanelif $FORM{'itemsperpage'}>
	<cpanel setvar="itemsperpage=$FORM{'itemsperpage'}">
</cpanelif>
<cpanelif !$FORM{'itemsperpage'} || !$CPVAR{'itemsperpage'}>
	<cpanel setvar="itemsperpage=10">
</cpanelif>



<cpanelif $FORM{'unsub'}>
<?cp CommuniGate::RemoveGroupMember() listname=$FORM{'listname'},subemail=$FORM{'subemail'} ?>
</cpanelif>

<cpanelif $CPERROR{'CommuniGate'} && $FORM{'unsub'}>
<p><cpanel print="CGP ERROR : $CPERROR{'CommuniGate'}"></p>
</cpanelif>

<cpanelif $CPERROR{'InputWrong'} && $FORM{'sub'}>
<p><cpanel print="                     $CPERROR{'InputWrong'}"></p>
</cpanelif>



<cpanelif $FORM{'sub'}>
<?cp CommuniGate::AddGroupMember() listname=$FORM{'listname'},CGPMLReceivingMode=$FORM{'CGPMLReceivingMode'},CGPMLPostingMode=$FORM{'CGPMLPostingMode'},account=$FORM{'account'} ?>
</cpanelif>

<cpanelif $CPERROR{'CommuniGate'} && $FORM{'sub'}>
<p><cpanel print="CGP ERROR : $CPERROR{'CommuniGate'}"></p>
</cpanelif>

	
<style type="text/css">
<?cp Branding::spritelist(.spriteicon_img_mini {float:left;margin-right:5px;background: url\{leftparenthesis}"%"\{rightparenthesis};} %,@spriteurl,images::#icon-${img}_mini {background-position\{colon}0 -${cssposition}px;width\{colon}${width}px;height\{colon}${height}px; }:) imgtype=icon,subtype=img,method=scale_60percent,format=png,img=maillist ?>
</style>	
	
<div class="body-content">
<cpanelfeature cgpro_groupmail>
<div class="h1Title"><div class="spriteicon_img_mini" id="icon-maillist_mini"></div> <cpanel langprint="CGPGroupMembers"> <cpanel print="$FORM{'listname'}"></div>

<p class="description"><cpanel langprint="CGPGroupMemberDesc"></p>


<h2><cpanel langprint="CGPAddGroupMember"></h2>
<?cp StatsBar::stat( [p class="caution"]$LANG{'statsattention'}&nbsp;%&nbsp;$LANG{'statsoutof'}&nbsp;%$LANG{'available'}&nbsp;$LANG{'INDXMailingLists'}[/p],count,max) display=mailinglists,warnings=1,warninglevel=80,infinitylang=true ?>



<div class="highlight">
  <form method="post" action="groupmembers.html" id="subform" name="subform">
    <input type="hidden" name="sub" value="sub">
    <input type="hidden" name="listname" value="<cpanel print="$FORM{'listname'}">">

    <table>
      <tr>
	<td style="width: 150px" align="right"><cpanel langprint="CGPGroupMemberEmail">:</td>
	<td>
	  <?cptt CommuniGate::AccountsOverview(cgpro/select_accounts.tmpl) ?>
	</td>
	<td><div id="email_error"></div></td>
      </tr>
      <tr><td colspan="3"><br /></td></tr>
      <tr>
	<td>&nbsp;</td>
	<td colspan="2"><input type="submit" id="submit" value="<cpanel langprint="CGPDoAddGroupMember">" class="input-button" style="width: 150px" /></td>
      </tr>
    </table>
  </form>
</div><!-- end highlight -->
<script type="text/javascript">
//<![CDATA[
var REQUIRED_PASSWORD_STRENGTH = parseInt('<?cp PasswdStrength::get_required_strength(%,strength) app=list ?>') || 0;

var init_lists = function() {
	var lname_validator = new CPANEL.validate.validator("List Name");
	lname_validator.add("email", "min_length(%input%, 1)", "<cpanel langprint="MLJAlertNameBlank">");
	lname_validator.attach();
};

//]]>
</script>


<h2><cpanel langprint="CGPGroupCurrentMembers"></h2>

<table border="0" cellpadding="5" cellspacing="0" id="mailtbl" class="sortable" width="650">

    <tr >
		<th class="cell"><cpanel langprint="CGPMLSubName"></th>
		<th class="cell-end sorttable_nosort"><cpanel langprint="AHFucn"></th>
	</tr>


<?cp CommuniGate::ListGroupMembers(
	[tr class="row-%"]
		[td class="cell nobrd-center-t"]%[/td]
		[td class="nobrd" align="center"]
			[form method="post" action="groupmembers.html" id="userform" name="unsub"]
                                [input type="hidden" name="unsub" value="unsub"]
                                [input type="hidden" name="subemail" value="%"]
                                [input type="hidden" name="listname" value="$FORM{'listname'}"]
				[button id="my_button" onclick="" type="submit" Value="Update"]Remove[/button]
	
			[/form]	
		[/td]

	[/tr]
,*num,subemail,subemail,r_feedsel,r_digestsel,r_indexsel,r_nullsel,r_bannedsel,r_subscribesel,r_unsubscribesel,mod1sel,mod2sel,mod3sel,mod4sel,mod5sel,modallsel,unmodsel,nopostsel,numpost,subemail,subemail,subemail,subemail,subemail) listname=$FORM{'listname'},regex=$FORM{'searchregex'},api2_paginate=1,api2_paginate_start=$FORM{'api2_paginate_start'},api2_paginate_size=$CPVAR{'itemsperpage'} || '[tr][td colspan="4" class="errors"]$LANG{'CGPGroupNoSub'}[/td][/tr]' ?>



</table>

<?cp UI::paginate(%,paginator) currentpage=$CPVAR{'currentpage'},pages=$CPVAR{'pages'},itemsperpage=$CPVAR{'itemsperpage'} ?>
<cpanelif $CPVAR{'pages'} && !$CPVAR{'pages'}==1>
	<div style="float:right">
		<form method="get" action="">
			<cpanel langprint="PaginatorShowing"> <select name="itemsperpage" onchange="this.form.submit();">
			<?cp UI::paginate_list([option value="%" %]%[/option],item,selected=1?selected:,item) itemsperpage=$CPVAR{'itemsperpage'},itemlist=10:25:50:100:250:500 ?>
			</select><noscript><button id="my_button" onclick="" type="submit" Value=""><cpanel Locale="maketext('Change')"></button></noscript>  <cpanel langprint="PaginatorResults"> 
		</form>
	</div>
</cpanelif>

<div class="return-link"><a href="groups.html">&larr; <cptext "Go Back"></a></div>
</cpanelfeature>
</div><!-- end body-content -->

<cpanel Branding="include(stdfooter.html)">
